<!DOCTYPE html>
<html>
<head>
    <title>自动化测试用例总览</title>
    <style>
        .fail {
            color: red;
			width: 7emem;
			text-align: center;
        }
        .success {
            color: green;
			width: 7emem;
			text-align: center;
        }
		.details-col-elapsed {
			width: 7em;
			text-align: center;
		}
		.details-col-msg {
			width: 10em;
			text-align: center;
			background-color:#66ffcc;
		}

    </style>
</head>
<body>
<div >
    <div class="exequte_logo">
	</div>
	<form method="POST" action="/search" enctype="multipart/form-data">
		<input type="text" name="batch_info" placeholder="查询报告" disabled ='disabled' class="input_txt">
                <select name = "batch_info">
            {% for r in result.Excel_detail_list %}
            <option value="{{ r['caseid'] }}">{{r["batch_info"] }}</option>
            {% endfor %}
        </select>
		<input type="submit" value="查看" class="input_sub">
	</form>
	<div class="exequte_bg"></div>
     <br>
	<div class="exequte_logo">
	</div>
	<form method="POST" action="/exequte" enctype="multipart/form-data">
		<input type="text" name="docaseid" placeholder="输入需执行的用例id" class="input_txt">
		<input type="submit" value="执行" class="input_sub">
	</form>
	<div class="exequte_bg"></div>

    <br>
    <table  border="thin" cellspacing="0" cellpadding="3"  width="95%" style="margin: auto;">
        <tr  style="font-size: 20px">
            <th class='details-col-msg' >用例编号</th>
            <th class='details-col-msg' >所属模块</th>
            <th class='details-col-msg' >用例描述</th>
            <th class='details-col-msg' >批次</th>
            <th class='details-col-msg' >操作</th>
        </tr>
        {% for r in result.Excel_detail_list %}
        <tr style="font-size: 16px">
            <td class='details-col-elapsed'>{{ r["caseid"] }}</td>
            <td class='details-col-elapsed'>{{ r["module"] }}</td>
            <td class='details-col-elapsed'>{{  r["casedesc"]  }}</td>
            <td class='details-col-elapsed'>{{r["batch_info"] }}</td>
            <td><a href="/r/{{ r.caseid }}">执行</a></td>
        </tr>
        {% endfor %}

    </table>
</div>

</body>
</html>





